﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="companyMoneyList.aspx.cs" Inherits="WebSite.admin.company.companyMoneyList" %>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>阳澄湖牌后台管理 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />

</head>
<body class="body">
    <form id="form1" runat="server">
    <div class="maincontent">
                        <%= HeaderHtml %>
    <table id="tblSearch" runat="server" class="searchtable" width="100%" cellpadding="0" cellspacing="4"   style="border:0;">
    <tr>
      <td width="4%">查找:</td>
      <td>  <asp:DropDownList  ID="ddlProvence" runat="server"  > </asp:DropDownList>    </td>
      
         <td width="8%" style="text-align:right;">商家级别</td>
           <td  width="12%">
              <asp:DropDownList ID="ddlLevel" runat="server">
              </asp:DropDownList>
            </td>
            <td width="12%" >商家关键字</td>
           <td width="10%"><asp:TextBox id="txtKeywords" runat="server"></asp:TextBox> </td>

            <td style="text-align:right;"></td>
          <td>
          <asp:ImageButton ID="ibtnSearch" ImageUrl="../images/button04.gif" runat="server" OnClick="ibtnSearch_Click" />
          </td>
      </tr>
      </table>
  <br />
  
<asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" 
        ForeColor="#333333" DataKeyNames="id" AutoGenerateColumns="False"  OnRowDataBound="GridView1_RowDataBound"    OnSorting="GridView1_Sorting"
        AllowPaging="True" pagesize="100" BorderStyle="Solid" BorderWidth="1px" 
      ShowFooter="false" EmptyDataText="没有数据记录！！" AllowSorting="True" >
        <Columns>
          <asp:BoundField HeaderText="编号" DataField="CompanyCode" sortexpression="CompanyCode" />
           <asp:TemplateField ShowHeader="False" HeaderText="公司名称" HeaderStyle-Width="140px">
             <ItemTemplate>
              <%# Eval("CompanyName") %>
             </ItemTemplate>
        </asp:TemplateField>
          <asp:BoundField HeaderText="级别" DataField="CompanyLevel" HeaderStyle-Width="40px" sortexpression="CompanyLevel" />
          <asp:BoundField HeaderText="联系人" DataField="Linker"  />
          <asp:BoundField HeaderText="联系方式" DataField="Telephone"  />
          <asp:BoundField HeaderText="预存款(元)" DataField="InMoney" sortexpression="InMoney" />
          <asp:BoundField HeaderText="常规出账(元)" DataField="OutMoney" sortexpression="OutMoney" />
          <asp:BoundField HeaderText="现货出账(元)" DataField="MeterialMoney" sortexpression="MeterialMoney" />
          <asp:BoundField HeaderText="卡片出账(元)" DataField="CardMoney" sortexpression="CardMoney" />
          <asp:BoundField HeaderText="预存余额(元)" DataField="RemainingSum" sortexpression="RemainingSum" />
          <asp:BoundField HeaderText="应收款(元)" DataField="ReceiveMoney" sortexpression="ReceiveMoney" />
        <asp:TemplateField ShowHeader="False" HeaderText="操作"  HeaderStyle-Width="160px">
                <ItemTemplate>
                  <div style="float:left;">
                  <div id="divInMoney" runat="server" style="float:left; display:block;"><a href="CompanyMoney.aspx?id=<%# Eval("id") %>&type=<%=ParamentType %>&stype=in" title="入账">[入账]</a></div>
                  <div id="divOutMoney" runat="server" style="float:left; padding-left:5px; display:block;"> <a href="CompanyMoney.aspx?id=<%# Eval("id") %>&type=<%= ParamentType %>&stype=out" title="出账">[出账]</a>   </div>
                  <div id="divDetail" runat="server" style="float:left; padding-left:5px; display:block;">  <a  href="OutInDetail.aspx?id=<%# Eval("id") %>&type=<%= ParamentType %>"  title="详细">[详细]</a>  </div>
               </div>
                </ItemTemplate>
        </asp:TemplateField>
        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td height="25" align="right" bgcolor="#E9ECEF"><asp:Label ID="LblRecordCount" runat="server"></asp:Label>
            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton> 
            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton> 
            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton> 
            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton> 
             跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页&nbsp;
         </td>
       </tr>
    </table>

    </div>
    </form>
</body>
</html>
